{extend name="base" /}
{block name="body"}
<div class="layui-card">
    <div class="layui-card-body" pad15>
        <form action="{:request()->url()}" class="layui-form" method="post">
        <div class="layui-tab">
            <ul class="layui-tab-title">
                <li class="layui-this">公众号参数</li>
                <li>小程序参数</li>
                <li>微信支付参数</li>
            </ul>
            <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <div class="layui-form-item">
                            <label class="layui-form-label">Appid</label>
                            <div class="layui-input-block">
                                <input type="text" name="wechat[appid]" value="{$data.wechat.appid|default=''}"  autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">Appsecret</label>
                            <div class="layui-input-block">
                                <input type="text" name="wechat[appsecret]" value="{$data.wechat.appsecret|default=''}"  autocomplete="off" class="layui-input">
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab-item">
                        <div class="layui-form-item">
                            <label class="layui-form-label">Appid</label>
                            <div class="layui-input-block">
                                <input type="text" name="wxapp[appid]" value="{$data.wxapp.appid|default=''}"  autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">Appsecret</label>
                            <div class="layui-input-block">
                                <input type="text" name="wxapp[appsecret]" value="{$data.wxapp.appsecret|default=''}" autocomplete="off"  class="layui-input">
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab-item">
                        <div class="layui-form-item">
                            <label class="layui-form-label">商户号</label>
                            <div class="layui-input-block">
                                <input type="text" name="wxpay[mch_id]" value="{$data.wxpay.mch_id|default=''}"  autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">Key</label>
                            <div class="layui-input-block">
                                <input type="text" name="wxpay[key]" value="{$data.wxpay.key|default=''}"  autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item layui-form-text">
                            <label class="layui-form-label">cert.pem</label>
                            <div class="layui-input-block">
                                <textarea name="wxpay[certpem]" class="layui-textarea">{$data.wxpay.certpem|default=''}</textarea>
                            </div>
                        </div>
                        <div class="layui-form-item layui-form-text">
                            <label class="layui-form-label">key.pem</label>
                            <div class="layui-input-block">
                                <textarea name="wxpay[keypem]" class="layui-textarea">{$data.wxpay.keypem|default=''}</textarea>
                            </div>
                        </div>
                    </div>
            </div>
        </div>
        <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit  lay-filter="*">确认保存</button>
                </div>
            </div>
        </form>
    </div>
</div>
{/block}
{block name="js"}
<script>
    layui.use('element', function(){
  var element = layui.element;
  
  //…
});
</script>
{/block}